package com.dc.system.model;

import java.io.Serializable;

public class SysLoginLog implements Serializable {
    /**
     *
     */
    private Integer login_log_id;

    /**
     * 版本号
     */
    private int version;

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }


    /**
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method returns the value of the database column t_sys_login_log.login_log_id
     *
     * @return the value of t_sys_login_log.login_log_id
     */
    public Integer getLogin_log_id() {
        return login_log_id;
    }

    /**
     */
    public SysLoginLog withLogin_log_id(Integer login_log_id) {
        this.setLogin_log_id(login_log_id);
        return this;
    }

    /**
     * This method sets the value of the database column t_sys_login_log.login_log_id
     *
     * @param login_log_id the value for t_sys_login_log.login_log_id
     */
    public void setLogin_log_id(Integer login_log_id) {
        this.login_log_id = login_log_id;
    }

    /**
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", login_log_id=").append(login_log_id);
        sb.append("]");
        return sb.toString();
    }

    /**
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysLoginLog other = (SysLoginLog) that;
        return (this.getLogin_log_id() == null ? other.getLogin_log_id() == null : this.getLogin_log_id().equals(other.getLogin_log_id()));
    }

    /**
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLogin_log_id() == null) ? 0 : getLogin_log_id().hashCode());
        return result;
    }
}